<?php
	class Account{
		private $username=1;
		private $pwd=2;
		public function __set($name,$value){
			$this->$name=$value;
		}
		public function __get($name){
			if(!isset($this->$name)){
				echo "未设置";
				$this->$name="初始值";
			}else{
				return $this->$name;
			}
		}
	}
	header("Content-type:text/html;charset=utf-8");
	$account=new Account();
	echo $account->username;
	$account->name=222;
	echo $account->name;
	echo $account->big;
	echo $account->big;
